﻿@model IEnumerable<ModuleDto>
@Html.Extra()
@{
    var data = Model.OrderBy(x=>x.SortIndex).ToList();
    var user = ManagerAuthorization.Current.User;
}
<div class="left-nav">
    <ul id="oneMenu">
        <li class="nav-logo"></li>
        @for (int i = 0; i < data.Count(); i++)
        {
            var url = "";
            if (i > 4)
            {
                url = "/App_Content/Theme/OA/css/image/icon-01.png";
            }
            else {
                url = "/App_Content/Theme/OA/css/image/icon-0" + i + ".png";
            }
        <li data-id='@i'>
            <img align="middle" alt="@data[i].Name" src=@url><p style="text-align: center;">@data[i].Name</p>
        </li>
        }
    </ul>
</div>
<div class="right">
    <div class="content">
        <div class="top">
            <div class="status">
                @*<a href="#" class="icon station">微站预览</a>
                    <a href="#" class="icon pay">微支付设置</a>
                    <a href="#" class="icon email">
                        邮件
                        <span class="tip">1</span>
                    </a>
                    <a href="#" class="icon doc">
                        运营文档
                        <span class="tip">2</span>
                    </a>
                    <a href="#" class="icon help">帮助</a>*@
                <div class="tx">
                    <div class="img"><img src="~/App_Content/Theme/OA/css/image/tx.png" alt="" /></div>
                    <span></span>
                    <div class="user-panel">
                        <p><em>@user.Name</em>@*<a href="###">编辑</a>*@<a href="###" data-url="@Url.Action("ChangePassword", "User", new { Area = "Common", From = "LoginView"})" data-action="changePassword">修改密码</a></p>
                        <p>欢迎您，上次登录是 @user.LoginTime.Value.ToString("yyyy-MM-dd")</p>
                        <p class="login">
                            @*<img src="~/App_Content/Theme/OA/css/image/wx.jpg" height="110" width="110">*@
                            <a href="@Url.Action("Logout", "User", new { Area = "Common" })"><input type="button" value="退出登录" /></a>
                        </p>
                        <div class="arrow-top"></div>
                    </div>
                </div>
            </div>
            <div class="message-icon"></div>
            <div class="message">
                <h2>系统通知：</h2>
                <p>2014-12-12 23：00至03:00为新版本2.2发布</p>
            </div>
        </div>
        <div class="container" id="container">
            <div class="container-left">
                @for (int i = 0; i < data.Count(); i++)
                {
                <ul class=@(i == 0 ? "" : "hide")>
                    @for (int j = 0; j < data[i].Childs.Count(); j++)
                        {
                        <li key="@data[i].Childs[j].Id" name="@data[i].Childs[j].Name" url="@data[i].Childs[j].CommandArgument">
                            <a href="#">@data[i].Childs[j].Name</a>
                        </li>
                        }
                </ul>
                }
                <div class="arrow-0"></div>
            </div>
            <div class="container-right">
                <ul class="sub-nav" id="subNav">
                </ul>
                <div class="iframe" id="iframe">
                </div>
            </div>
        </div>
    </div>
</div>


